package demo3_9;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : LiBaoxuan
 * @create 2023/5/10 9:21 PM
 */
public class Overload {

    public static int add(int x, int y) {
        return x + y;
    }

    public static int add(double x, double y) {
        return (int) (x + y);
    }

    public static void main(String[] args) {
        System.out.println(add(1,2));
        System.out.println(add(1.9,2.5));
    }
}
